package jp.co.ikd.util;

import java.util.Calendar;
import java.util.Date;

/** ボツ */
public class DateUtilβ1{

	private Date date;

	public DateUtilβ1(Date date) {
		this.date = date;
	};

	public Date addYear(int year) {

		Calendar cal = Calendar.getInstance();
		cal.setTime(date);
		cal.add(Calendar.YEAR, year);

		return cal.getTime();
	}

	public Date addMonth(int month) {

		Calendar cal = Calendar.getInstance();
		cal.setTime(date);
		cal.add(Calendar.MONTH, month);

		return cal.getTime();
	}

	public Date addDay(int day) {

		Calendar cal = Calendar.getInstance();
		cal.setTime(date);
		cal.add(Calendar.DATE, day);

		return cal.getTime();
	}
}
